Optimal. Leaf size=209 \[ \frac {x}{2 a^2 c^2 \sqrt {a^2 c x^2+c} \tan ^{-1}(a x)}-\frac {3 x}{2 a^2 c \left (a^2 c x^2+c\right )^{3/2} \tan ^{-1}(a x)}-\frac {\sqrt {a^2 x^2+1} \text {Ci}\left (\tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {a^2 c x^2+c}}+\frac {9 \sqrt {a^2 x^2+1} \text {Ci}\left (3 \tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {a^2 c x^2+c}}-\frac {1}{2 a^3 c^2 \sqrt {a^2 c x^2+c} \tan ^{-1}(a x)^2}+\frac {1}{2 a^3 c \left (a^2 c x^2+c\right )^{3/2} \tan ^{-1}(a x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.91, antiderivative size = 209, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 11, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.458, Rules used = {4964, 4902, 4942, 4905, 4904, 3302, 4968, 4971, 4970, 4406, 3312} \[ -\frac {\sqrt {a^2 x^2+1} \text {CosIntegral}\left (\tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {a^2 c x^2+c}}+\frac {9 \sqrt {a^2 x^2+1} \text {CosIntegral}\left (3 \tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {a^2 c x^2+c}}+\frac {x}{2 a^2 c^2 \sqrt {a^2 c x^2+c} \tan ^{-1}(a x)}-\frac {1}{2 a^3 c^2 \sqrt {a^2 c x^2+c} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (a^2 c x^2+c\right )^{3/2} \tan ^{-1}(a x)}+\frac {1}{2 a^3 c \left (a^2 c x^2+c\right )^{3/2} \tan ^{-1}(a x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3302
Rule 3312
Rule 4406
Rule 4902
Rule 4904
Rule 4905
Rule 4942
Rule 4964
Rule 4968
Rule 4970
Rule 4971
Rubi steps
\begin {align*} \int \frac {x^2}{\left (c+a^2 c x^2\right )^{5/2} \tan ^{-1}(a x)^3} \, dx &=-\frac {\int \frac {1}{\left (c+a^2 c x^2\right )^{5/2} \tan ^{-1}(a x)^3} \, dx}{a^2}+\frac {\int \frac {1}{\left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^3} \, dx}{a^2 c}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}+\frac {3 \int \frac {x}{\left (c+a^2 c x^2\right )^{5/2} \tan ^{-1}(a x)^2} \, dx}{2 a}-\frac {\int \frac {x}{\left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2} \, dx}{2 a c}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)}+\frac {x}{2 a^2 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)}-3 \int \frac {x^2}{\left (c+a^2 c x^2\right )^{5/2} \tan ^{-1}(a x)} \, dx+\frac {3 \int \frac {1}{\left (c+a^2 c x^2\right )^{5/2} \tan ^{-1}(a x)} \, dx}{2 a^2}-\frac {\int \frac {1}{\left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)} \, dx}{2 a^2 c}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)}+\frac {x}{2 a^2 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)}-\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \int \frac {x^2}{\left (1+a^2 x^2\right )^{5/2} \tan ^{-1}(a x)} \, dx}{c^2 \sqrt {c+a^2 c x^2}}-\frac {\sqrt {1+a^2 x^2} \int \frac {1}{\left (1+a^2 x^2\right )^{3/2} \tan ^{-1}(a x)} \, dx}{2 a^2 c^2 \sqrt {c+a^2 c x^2}}+\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \int \frac {1}{\left (1+a^2 x^2\right )^{5/2} \tan ^{-1}(a x)} \, dx}{2 a^2 c^2 \sqrt {c+a^2 c x^2}}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)}+\frac {x}{2 a^2 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)}-\frac {\sqrt {1+a^2 x^2} \operatorname {Subst}\left (\int \frac {\cos (x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{2 a^3 c^2 \sqrt {c+a^2 c x^2}}+\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\cos ^3(x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{2 a^3 c^2 \sqrt {c+a^2 c x^2}}-\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\cos (x) \sin ^2(x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^2 \sqrt {c+a^2 c x^2}}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)}+\frac {x}{2 a^2 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)}-\frac {\sqrt {1+a^2 x^2} \text {Ci}\left (\tan ^{-1}(a x)\right )}{2 a^3 c^2 \sqrt {c+a^2 c x^2}}+\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \left (\frac {3 \cos (x)}{4 x}+\frac {\cos (3 x)}{4 x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{2 a^3 c^2 \sqrt {c+a^2 c x^2}}-\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \left (\frac {\cos (x)}{4 x}-\frac {\cos (3 x)}{4 x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^2 \sqrt {c+a^2 c x^2}}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)}+\frac {x}{2 a^2 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)}-\frac {\sqrt {1+a^2 x^2} \text {Ci}\left (\tan ^{-1}(a x)\right )}{2 a^3 c^2 \sqrt {c+a^2 c x^2}}+\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\cos (3 x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {c+a^2 c x^2}}-\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\cos (x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{4 a^3 c^2 \sqrt {c+a^2 c x^2}}+\frac {\left (3 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\cos (3 x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{4 a^3 c^2 \sqrt {c+a^2 c x^2}}+\frac {\left (9 \sqrt {1+a^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\cos (x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {c+a^2 c x^2}}\\ &=\frac {1}{2 a^3 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)^2}-\frac {3 x}{2 a^2 c \left (c+a^2 c x^2\right )^{3/2} \tan ^{-1}(a x)}+\frac {x}{2 a^2 c^2 \sqrt {c+a^2 c x^2} \tan ^{-1}(a x)}-\frac {\sqrt {1+a^2 x^2} \text {Ci}\left (\tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {c+a^2 c x^2}}+\frac {9 \sqrt {1+a^2 x^2} \text {Ci}\left (3 \tan ^{-1}(a x)\right )}{8 a^3 c^2 \sqrt {c+a^2 c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.24, size = 119, normalized size = 0.57 \[ \frac {-\left (a^2 x^2+1\right )^{3/2} \tan ^{-1}(a x)^2 \text {Ci}\left (\tan ^{-1}(a x)\right )+9 \left (a^2 x^2+1\right )^{3/2} \tan ^{-1}(a x)^2 \text {Ci}\left (3 \tan ^{-1}(a x)\right )+4 a x \left (\left (a^2 x^2-2\right ) \tan ^{-1}(a x)-a x\right )}{8 a^3 c^2 \left (a^2 x^2+1\right ) \sqrt {a^2 c x^2+c} \tan ^{-1}(a x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.41, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {a^{2} c x^{2} + c} x^{2}}{{\left (a^{6} c^{3} x^{6} + 3 \, a^{4} c^{3} x^{4} + 3 \, a^{2} c^{3} x^{2} + c^{3}\right )} \arctan \left (a x\right )^{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 3.33, size = 844, normalized size = 4.04 \[ -\frac {\left (9 \Ei \left (1, 3 i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2} x^{4} a^{4}-3 \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x^{3} a^{3}+18 \Ei \left (1, 3 i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2} x^{2} a^{2}-i \sqrt {a^{2} x^{2}+1}\, x^{3} a^{3}+3 \sqrt {a^{2} x^{2}+1}\, x^{2} a^{2}-9 i \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x^{2} a^{2}+9 \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x a +9 \Ei \left (1, 3 i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2}+3 i \sqrt {a^{2} x^{2}+1}\, x a -\sqrt {a^{2} x^{2}+1}+3 i \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right )\right ) \sqrt {c \left (a x -i\right ) \left (a x +i\right )}}{16 \sqrt {a^{2} x^{2}+1}\, \left (a^{4} x^{4}+2 a^{2} x^{2}+1\right ) \arctan \left (a x \right )^{2} c^{3} a^{3}}-\frac {\left (9 \Ei \left (1, -3 i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2} x^{4} a^{4}-3 \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x^{3} a^{3}+18 \Ei \left (1, -3 i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2} x^{2} a^{2}+i \sqrt {a^{2} x^{2}+1}\, x^{3} a^{3}+3 \sqrt {a^{2} x^{2}+1}\, x^{2} a^{2}+9 i \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x^{2} a^{2}+9 \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x a -3 i \sqrt {a^{2} x^{2}+1}\, x a +9 \Ei \left (1, -3 i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2}-3 i \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right )-\sqrt {a^{2} x^{2}+1}\right ) \sqrt {c \left (a x -i\right ) \left (a x +i\right )}}{16 \sqrt {a^{2} x^{2}+1}\, \left (a^{4} x^{4}+2 a^{2} x^{2}+1\right ) \arctan \left (a x \right )^{2} c^{3} a^{3}}+\frac {\left (\Ei \left (1, i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2} x^{2} a^{2}+\sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x a +i \sqrt {a^{2} x^{2}+1}\, x a +\Ei \left (1, i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2}+i \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right )-\sqrt {a^{2} x^{2}+1}\right ) \sqrt {c \left (a x -i\right ) \left (a x +i\right )}}{16 \left (a^{2} x^{2}+1\right )^{\frac {3}{2}} \arctan \left (a x \right )^{2} c^{3} a^{3}}+\frac {\left (\Ei \left (1, -i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2} x^{2} a^{2}+\sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right ) x a +\Ei \left (1, -i \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2}-i \sqrt {a^{2} x^{2}+1}\, x a -\sqrt {a^{2} x^{2}+1}-i \sqrt {a^{2} x^{2}+1}\, \arctan \left (a x \right )\right ) \sqrt {c \left (a x -i\right ) \left (a x +i\right )}}{16 \left (a^{2} x^{2}+1\right )^{\frac {3}{2}} \arctan \left (a x \right )^{2} c^{3} a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{2}}{{\left (a^{2} c x^{2} + c\right )}^{\frac {5}{2}} \arctan \left (a x\right )^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {x^2}{{\mathrm {atan}\left (a\,x\right )}^3\,{\left (c\,a^2\,x^2+c\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{2}}{\left (c \left (a^{2} x^{2} + 1\right )\right )^{\frac {5}{2}} \operatorname {atan}^{3}{\left (a x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________